Skip to content

Add gx review-bot scaffold for Codex PR review + guarded auto-merge#57

Closed
NagyVikt wants to merge 1 commit intomainfrom
agent/codex/nagyvikt007-gmail-com-guardex-review-bot
Closed

Add gx review-bot scaffold for Codex PR review + guarded auto-merge#57
NagyVikt wants to merge 1 commit intomainfrom
agent/codex/nagyvikt007-gmail-com-guardex-review-bot

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

  • add gx review-bot command to scaffold a Codex-based PR review workflow
  • generate workflow + prompt + JSON schema files for reproducible review outputs
  • gate auto-merge to agent-prefixed head branches and explicit guardex-automerge label
  • default target branch resolution to current local branch (or musafetyBase when running on an agent branch)

Verification

  • node --check bin/multiagent-safety.js
  • node --test test/install.test.js
  • npm test

Add a first-class gx review-bot command that scaffolds a Codex-based PR review workflow, including structured schema output and optional auto-merge gating for agent branches. This keeps the agent-first push->PR->merge loop explicit and reproducible for main.

Constraint: Must preserve branch-first workflow where agents push to their own branch before merge to base

Rejected: Implicitly auto-enable reviews for every branch without head-prefix gate | would risk non-agent branches auto-merging

Confidence: high

Scope-risk: moderate

Reversibility: clean

Directive: Keep auto-merge gated by explicit label and head-branch prefix unless repository policy changes

Tested: node --check bin/multiagent-safety.js; node --test test/install.test.js; npm test

Not-tested: Live GitHub Actions run with real OPENAI_API_KEY/GUARDEX_BOT_TOKEN secrets
Comment thread bin/multiagent-safety.js
console.log(`[${TOOL_NAME}] Protected base branches for bot: ${baseBranches.join(', ')}`);
console.log(`[${TOOL_NAME}] Auto-merge head-branch prefix: ${headBranchPrefix}`);
console.log(`[${TOOL_NAME}] Next steps:`);
console.log(` 1) Add secret '${options.apiKeySecret}' (Codex/OpenAI API key).`);
@NagyVikt NagyVikt closed this Apr 13, 2026
@NagyVikt NagyVikt deleted the agent/codex/nagyvikt007-gmail-com-guardex-review-bot branch April 13, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants